Login     Sign up
make setting only friends can view and comment profile to work
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

file to modify: includes\libs\u.module.php

function show_sidebar

look for this line:
[code]
ass(array('content'=>'<center>'.$output.'</center>'));
[/code]

below this line and above following line:

[code]
// following
[/code]

enter this line

[code]
if (($owner['profile_permission'] == 0) || (($client['id']) && ($owner['is_friend'])) || ($client['id']) == ($owner['id']) || ( allow_access(3))) {
[/code]

now search for this line
[code]
ass($this->details($owner));
[/code]
and enter this line after it
[code]
}
[/code]

173 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

Mate you did it again truly awesome you must be at guru status by now :)..

173 months ago
john mor (@johninhell)
Join date: Oct 15th 2010
Community posts: 159
View Profile
Send Message

not working bro :-
still showing

Sorry, only friends can view this profile

:(

173 months ago
Jcow Master (@falcone)
Join date: Sep 2nd 2010
Community posts: 917
View Profile
Send Message

this code hide the profile information, if the privacy setting is set, except for the admin. To hide the message "only friends can view this profile" for the admin you need this code [url]http://community.jcow.net/forums/viewthread/991[/url]

173 months ago
DeFender (@defender)
Join date: Oct 1st 2010
Community posts: 167
View Profile
Send Message

nice

now I can view users profile with permission == 2

thank you dj jcow master :)

173 months ago